package com.xing.demo;

import java.util.Scanner;

public class 口渴喝水继续跑 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        String answer;
        int  count=0;
        do {
            count++;
            System.out.println("开始跑："+count+"圈");
            System.out.println("=================");
            System.out.println("跑完了："+count+"圈");
            System.out.println("口渴吗？y/n");
            answer = input.next();
            if(!answer.equals("y")){
                continue;//跳出本次循环
            }
            System.out.println("喝水----------->");
        }while (count<10);
    }
}
